 /*  SAS Data Definition File */
 /*  Created by ddltox on Nov 04, 2009  (Wed 11:31 AM PST) */
 /*  DDL source file: "pp0103/pp0103.ddl". */

/* DDL indicates that dataset record length (reclen) is 52 columns. */

TITLE "The Pacific Poll 01-3";
FILENAME INDATA "    ";    /* Put name of data file between quotes */
LIBNAME LIBRARY "    ";    /* Put directory of data library between quotes */

PROC  FORMAT LIB=LIBRARY;
  VALUE langintv  1='ENGLISH' 2='SPANISH' ;
  VALUE bdeltoro  1='NOT AT ALL' 2='A LITTLE' 3='SOME' 4='A LOT' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE bdmin     1='NOT AT ALL' 2='A LITTLE' 3='SOME' 4='A LOT' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE bdredist  1='NOT AT ALL' 2='A LITTLE' 3='SOME' 4='A LOT' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE bdsoco    1='NOT AT ALL' 2='A LITTLE' 3='SOME' 4='A LOT' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE knowsupf  0='NO' 1='YES' ;
  VALUE knowsu0f  0='YES, INCORRECT ANSWER GIVEN' 
                  1='YES, CORRECT ANSWER GIVEN (FIVE)' 
                  8='NO/DO NOT KNOW/UNSURE' 9='REFUSED' 99='MISSING' ;
  VALUE knowsu1f  0='DO NOT KNOW' 1='CORRECT ANSWER' 9='MISSING' ;
  VALUE expsupes  0='CONTINUE WITH FIVE MEMBERS' 1='SHOULD BE EXPANDED' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE diffnoso  0='PRETTY MUCH THE SAME' 1='IMPORTANT DIFFERENCES' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE divideoc  0='OPPOSE' 1='SUPPORT' 7='(VOL.) IT DEPENDS' 8='DK/UNSURE' 
                  9='REFUSED' ;
  VALUE gstwrkr   1='OPPOSE STRONGLY' 2='OPPOSE SOMEWHAT' 
                  3='SUPPORT SOMEWHAT' 4='SUPPORT STRONGLY' 8='DK/UNSURE' 
                  9='REFUSED' ;
  VALUE amnesty   1='OPPOSE STRONGLY' 2='OPPOSE SOMEWHAT' 
                  3='SUPPORT SOMEWHAT' 4='SUPPORT STRONGLY' 8='DK/UNSURE' 
                  9='REFUSED' ;
  VALUE rinternt  0='NO' 1='YES' 8='DK/UNSURE' 9='REFUSED' ;
  VALUE reduc     1='DID NOT FINISH HIGH SCHOOL' 2='HIGH SCHOOL GRADUATE' 
                  3='SOME COLLEGE' 4='ASSOCIATE OR PROFESSIONAL DEGREE (AA)' 
                  5='BACHELOR''S DEGREE (BA/BS)' 
                  6='GRADUATE DEGREE (MA/JD/PhD/MD)' 8='DK/UNSURE' 
                  9='REFUSED' ;
  VALUE rinus     96='LESS THAN ONE YEAR' 97='ALL OF LIFE' 98='DK/UNSURE' 
                  99='REFUSED' ;
  VALUE rinocyrs  96='LESS THAN ONE YEAR' 97='ALL OF LIFE' 98='DK/UNSURE' 
                  99='REFUSED' ;
  VALUE rinocpct  1='0-24' 2='25-49' 3='50-74' 4='75-100' 9='MISSING' ;
  VALUE ocresrec  1='1-5 YEARS' 2='6-10 YEARS' 3='11-20 YEARS' 
                  4='MORE THAN 20 YEARS' 5='LESS THAN ONE YEAR' 
                  6='ALL OF LIFE' 7='DK/REFUSED' ;
  VALUE rmarsta   1='SINGLE, NEVER MARRIED' 2='MARRIED' 3='SEPARATED' 
                  4='DIVORCED' 5='OTHER (INCLUDE WIDOWED HERE).' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE rkidsnhs  0='NO' 1='YES' 8='DK/UNSURE' 9='REFUSED' ;
  VALUE rage      1='18-24' 2='25-34' 3='35-44' 4='45-64' 5='65 AND ABOVE' 
                  9='MISSING' ;
  VALUE rethnic   1='WHITE OR CAUCASIAN' 2='HISPANIC OR LATINO' 
                  3='ASIAN AMERICAN' 4='AFRICAN AMERICAN' 5='OTHER' 
                  8='DK/UNSURE' 9='REFUSED' ;
  VALUE rhispid   1='MEXICAN AMERICAN' 2='CENTRAL AMERICAN' 
                  3='SOUTH AMERICAN' 4='CUBAN AMERICAN' 
                  5='OTHER ETHNIC GROUP' 8='DK/UNSURE' 9='REFUSED' 
                  99='MISSING' ;
  VALUE rincome   1='LESS THAN $25,000' 2='BETWEEN $25 AND $35,000' 
                  3='BETWEEN $35 AND $45,000' 4='BETWEEN $45 AND $55,000' 
                  5='BETWEEN $55 AND $75,000' 6='BETWEEN $75 AND $100,000' 
                  7='MORE THAN $100,000' 8='DK/UNSURE' 9='REFUSED' ;
  VALUE rgender   1='MALE' 2='FEMALE' 9='MISSING' ;
  VALUE rptyreg   1='REPUBLICAN' 2='DEMOCRAT' 3='AMERICAN INDEPENDENT' 
                  4='GREEN' 5='LIBERTARIAN' 6='NATURAL LAW' 
                  7='PEACE AND FREEDOM' 8='DECLINE TO STATE' 9='MISSING' ;
  VALUE rregion   0='NORTH' 1='SOUTH' 9='MISSING' ;
  VALUE yearffff  2001='YEAR OF SURVEY' ;
  VALUE studyid   013='STUDY ID' ;
RUN;

DATA IN (LABEL="The Pacific Poll 01-3");
  INFILE INDATA LRECL=52;
  INPUT
    #1  CASEID 1-3              LANGINTV 4              BDELTORO 5              
        BDMIN 6                 BDREDIST 7              BDSOCO 8                
        KNOWSUP1 9              KNOWSUP2 10-11          KNOWSUP3 12             
        EXPSUPES 13             DIFFNOSO 14             DIVIDEOC 15             
        GSTWRKR 16              AMNESTY 17              RINTERNT 18             
        REDUC 19                RINUS 20-21             RINOCYRS 22-23          
        RINOCPCT 24             OCRESREC 25             RMARSTA 26              
        RKIDSNHS 27             RAGE 28                 RETHNIC 29              
        RHISPID 30-31           RINCOME 32              RGENDER 33              
        RPTYREG 34              RREGION 35              WEIGHT 36-44            
        YEAR 45-48              STUDYID 49-51           ;

  LABEL
   CASEID  = 'Case ID'
   LANGINTV= 'Language of Interview'
   BDELTORO= 'Q1a: Trust Board of Supervisors -- El Toro'
   BDMIN   = 'Q1b: Trust Board of Supervisors -- Minority Issues'
   BDREDIST= 'Q1c: Trust Board of Supervisors -- Redistricting'
   BDSOCO  = 'Q1d:.Trust Board of Supervisors -- South County Issues'
   KNOWSUP1= 'Q2a: R Self-Knowlege of Number of Supervisors'
   KNOWSUP2= 'Q2b: R Correctly Identifies Number of Supervisors'
   KNOWSUP3= 'Q2c: Summary Rs Knowledge of Number of Supervisors'
   EXPSUPES= 'Q3: Expansion of Board of Supervisors'
   DIFFNOSO= 'Q4: Important Differences Between North and South OC'
   DIVIDEOC= 'Q5: Dividing OC Into Two Counties'
   GSTWRKR = 'Q6: Guest Worker Program -- Support/Oppose'
   AMNESTY = 'Q7: Amnesty Program -- Support/Oppose'
   RINTERNT= 'D1: Rs Internet Usage'
   REDUC   = 'D2: Rs Level of Education'
   RINUS   = 'D3: Number of Years R Lived in US'
   RINOCYRS= 'D4: Number of Years R Has Lived in OC'
   RINOCPCT= 'Percentage of Life R Has Lived in OC RECODE'
   OCRESREC= 'Length of residence in Orange County RECODE'
   RMARSTA = 'D5: Rs Marital Status'
   RKIDSNHS= 'D6: Number of Children Living in Rs Household'
   RAGE    = 'D7: Rs Age Recoded'
   RETHNIC = 'D8a: Rs Ethnic Affiliation'
   RHISPID = 'D8b: Rs Hispanic Group ID'
   RINCOME = 'D9: Rs Income'
   RGENDER = 'Rs Gender'
   RPTYREG = 'Rs Party Registration'
   RREGION = 'Rs OC Region Based on ZIP'
   WEIGHT  = 'Weight'
   YEAR    = 'Year of Survey'
   STUDYID = 'Study ID'
        ;

  FORMAT LANGINTV langintv. BDELTORO bdeltoro. BDMIN bdmin. 
         BDREDIST bdredist. BDSOCO bdsoco. KNOWSUP1 knowsupf. 
         KNOWSUP2 knowsu0f. KNOWSUP3 knowsu1f. EXPSUPES expsupes. 
         DIFFNOSO diffnoso. DIVIDEOC divideoc. GSTWRKR gstwrkr. 
         AMNESTY amnesty. RINTERNT rinternt. REDUC reduc. 
         RINUS rinus. RINOCYRS rinocyrs. RINOCPCT rinocpct. 
         OCRESREC ocresrec. RMARSTA rmarsta. RKIDSNHS rkidsnhs. 
         RAGE rage. RETHNIC rethnic. RHISPID rhispid. 
         RINCOME rincome. RGENDER rgender. RPTYREG rptyreg. 
         RREGION rregion. YEAR yearffff. STUDYID studyid. 
          ;

/* md, min and max specifications were translated  */
/* into the following "IF" statements:           */

IF (KNOWSUP2 = 99) THEN KNOWSUP2 = .;
IF (RINOCPCT = 9) THEN RINOCPCT = .;
IF (RAGE = 9) THEN RAGE = .;
IF (RHISPID = 99) THEN RHISPID = .;
IF (RGENDER = 9) THEN RGENDER = .;
IF (RPTYREG = 9) THEN RPTYREG = .;
IF (RREGION = 9) THEN RREGION = .;

PROC DATASETS;
  CONTENTS DATA=IN POSITION;
  TITLE 'CONTENTS OF ALL VARIABLES';
RUN;
